package arthur.dy.lee.tair;

/**
 * Created by Administrator on 2017/8/21.
 */
public interface Locker<T,K> {
    public T doInLock(LockCallback<T, K> callback, K k) throws Exception;

    public T doSafeInLock(LockCallback<T, K> callback, K k, int expireTime) throws Exception;
}
